<?php 
/* SVN FILE: $Id$ */
/* Carrera Test cases generated on: 2010-01-17 23:20:46 : 1263792046*/
App::import('Model', 'Carrera');

class CarreraTestCase extends CakeTestCase {
	var $Carrera = null;
	var $fixtures = array('app.carrera');

	function startTest() {
		$this->Carrera =& ClassRegistry::init('Carrera');
	}

	function testCarreraInstance() {
		$this->assertTrue(is_a($this->Carrera, 'Carrera'));
	}

	function testCarreraFind() {
		$this->Carrera->recursive = -1;
		$results = $this->Carrera->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Carrera' => array(
			'id'  => 1,
			'codigo'  => 'Lore',
			'nombre'  => 'Lorem ipsum dolor sit amet',
			'rdescripcion'  => 'Lorem ipsum dolor sit amet',
			'rplanestudio'  => 'Lorem ipsum dolor sit amet'
		));
		$this->assertEqual($results, $expected);
	}
}
?>